#ifndef _GAMEINFO_H_
#define _GAMEINFO_H_
#include "cocos2d.h"
#include "eConfig.h"
#include <sstream>
using namespace cocos2d;

class gameinfo
{
public:
	gameinfo(void);
	~gameinfo(void);
	static void initSceneSize();
	static void initdata();
	static float s_conterscaleFactor;
	static void setScaleFactor(float scale){s_conterscaleFactor = scale;};
	static float getScaleFactor(){return s_conterscaleFactor;};

	static int s_width;
	static int s_height;

	static void CloseLayerMenuTouch(CCNode* layer,CCNode* thisNode);
	static void OpenLayerMenuTouch(CCNode* layer,CCNode* thisNode);

	static int    str2int(string str);
	static string int2str(int &i);
	static string int2str(unsigned int &i);
	static string short2str(short &i);
	static string float2str(float &i);
	
private:
	static void forNodeMenuClose(CCNode* layer,CCNode* thisNode);
	static void forNodeMenuOpen(CCNode* layer,CCNode* thisNode);

};


#endif